<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.Date"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>jsp:setproperty jsp:getproperty标签使用</title>
</head>
<body>
<!-- jsp:setproperty在工作时，会自动把字符串转换成巴中基本类型 -->
	<jsp:useBean id="person" class="day9.Person" scope="page"></jsp:useBean>
	<jsp:setProperty name="person" property="name" value="xiayqluwz" />
	<jsp:setProperty property="age" name="person" value="12" />
	<jsp:setProperty property="birthday" name="person" value="<%=new Date() %>" />
	<!--jsp:setproperty可以用请求参数为bean属性赋值  -->
	<jsp:setProperty property="name" name="person" param="name"/>
	<!-- 用所有的请求参数为bean赋值 -->
	<jsp:setProperty property="*" name="person"/>
<%-- 	<%
		System.out.println(person.getName());
	    System.out.println(person.getAge());
	    System.out.println(person.getPassword());
	%> --%>
	
	<jsp:getProperty property="name" name="person"/>
</body>
</html>